<?php

namespace app\admin\model;
use app\base\model\Base;
use think\Cache;
class UsersMessage extends Base
{
    //

    public function message_page($where){+
        $files = "a.*";
        $result = $this->alias("a")
            ->field($files)
            ->where($where)
            ->join("users u","u.id = a.user_id","left")
          //  ->whereTime("a.created_at","week")
            ->order("a.created_at desc");


       //  ->paginate();
        $result =  $this->exportExec(trs_resut($result));
        return     $this->trs_pages_join($result);
    }


}
